package cn.jiyun.controller;

import cn.jiyun.service.PackageService;
import com.jiyun.Result.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("carProduct/package")
public class PackageController {

    @Autowired
    private PackageService packageService;


    @RequestMapping("findPackageList")
    public Result findPackageList(Integer sortId,String search){
        return Result.ok(packageService.findPackageList(sortId,search));
    }
}
